package cn.tac.test.servlet.cheapter2.servlet;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author : tac
 * @since : 09/09/2017
 */
public class HelloServlet implements Servlet {
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("hello servlet init");
    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("from hello servlet service");
        //todo::
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {
        System.out.println("hello servlet destroy");
    }
}
